package cloud.xlh.exceptionhandle.service.impl;

import cloud.xlh.exceptionhandle.service.IResponseEnum;
import cloud.xlh.exceptionhandle.service.ServletExceptionAssert;
import lombok.AllArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/1/3 10:14
 * @ Description: Servlet异常枚举
 */
@AllArgsConstructor
public enum ServletResponseEnum implements IResponseEnum, ServletExceptionAssert {

    /**
     * ServletError
     */
    SERVLETERROR(0001, " Servlet异常");


    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
